package com.myspb.spring_boot;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
		System.out.println("-----------Server running-----------");
		Logger logger = LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
		logger.info("打了一条日志");
	}

}
